/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enterprise.web_jpa_war.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author Thomas
 */
@Entity
public class Fournisseur implements Serializable {
    private static final long serialVersionUID = 1L;
    
    /**  */
    @Id
    @Column(name = "CODE")
    private String codeFournisseur;
    /**  */
    @Column(name = "NOM")
    private String nom;
    /**  */
    @Column(name = "ADRESSE")
    private String adresse;
    /**  */
    @Column(name = "NUMTEL")
    private String numTel;
    
    

    public Fournisseur(String codeFournisseur, String nom, String adresse, String numTel) {
        this.codeFournisseur = codeFournisseur;
        this.nom = nom;
        this.adresse = adresse;
        this.numTel = numTel;
    }

    public Fournisseur() {
        
    }

    public String getAdresse() {
        return adresse;
    }

    public String getCodeFournisseur() {
        return codeFournisseur;
    }

    public String getNom() {
        return nom;
    }

    public String getNumTel() {
        return numTel;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
    
    @Override
    public String toString() {
        return "enterprise.web_jpa_war.entity.Fournisseur[ id=" + this.codeFournisseur + " ]";
    }
    
}
